package com.dgut.legalservice.domain;

import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.IdentityDialect;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "t_approval")
public class Approval {
    @Id
    @KeySql(dialect = IdentityDialect.MYSQL)
    private Integer id;
    @Column(name = "orderId")
    private String orderId;//流程id
    @Column(name = "result")
    private String result;//审核结果
    @Column(name = "auditUserId")
    private Integer auditUserId;//审核人
    @Column(name = "content")
    private String content;//意见
    @Column(name = "attGroupId")
    private Integer attGroupId;//附件关联组
    @Column(name = "createTime")
    private Date createTime;//创建时间
    @Column(name = "updateTime")
    private Date updateTime;//更新时间
    @Column(name = "createBy")
    private Integer createBy;//创建人
    @Column(name = "updateBy")
    private Integer updateBy;//更新人

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public Integer getAuditUserId() {
        return auditUserId;
    }

    public void setAuditUserId(Integer auditUserId) {
        this.auditUserId = auditUserId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getAttGroupId() {
        return attGroupId;
    }

    public void setAttGroupId(Integer attGroupId) {
        this.attGroupId = attGroupId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }

    public Integer getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Integer updateBy) {
        this.updateBy = updateBy;
    }

    @Override
    public String toString() {
        return "Approval{" +
                "id=" + id +
                ", orderId='" + orderId + '\'' +
                ", result='" + result + '\'' +
                ", auditUserId=" + auditUserId +
                ", content='" + content + '\'' +
                ", attGroupId=" + attGroupId +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", createBy=" + createBy +
                ", updateBy=" + updateBy +
                '}';
    }
}
